const DIC = {
  coupon_type: [{
    label: '满减券',
    value: '0'
  }]
}
export const tableOption = {
  border: true,
  index: true,
  columnBtn: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  searchBtn: false,
  refreshBtn: false,
  column: [
    {
      label:'是否到期',
      prop:'isExpiration',
      addVisdiplay: false,
      editVisdiplay: false,
      solt: true,
      formsolt: true,
      dicData: [{
        label: true,
        value: 0
      }, {
        label: false,
        value: 1
      }]
    },
	  {
      label: '名称',
      prop: 'name',
      span: 20,
      rules: [{
        required: true,
        message: '请输入名称'
      },
        {
          min: 1,
          max: 50,
          message: '长度在 1 到 50 个字符',
          trigger: 'blur'
        }]
    },
	  {
      label: '优惠金额',
      span: 12,
      prop: 'money',
      type: 'number',
      precision: 2,
      rules: [{
        required: true,
        message: '请输入优惠金额'
      }]
    },
	  {
      label: '最低消费金额',
      span: 12,
      prop: 'minConsum',
      type: 'number',
      precision: 2,
      rules: [{
        required: true,
        message: '请输入最低消费金额'
      }]
    },
    {
      label: '是否加入领券中心',
      span: 12,
      prop: 'isPublish',
      type: 'switch',
      valueDefault: 0,
      solt: true,
      dicData: [{
        value: 1
      },{
        value: 0
      },{
        value: 2
      }],
      rules: [{
        required: true,
        message: '请选择是否加入领券中心'
      }]
    },
	  {
      label: '发行数量',
      span: 12,
      solt: true,
      prop: 'nums',
      type: 'number',
      valueDefault: 0,
      rules: [{
        required: true,
        message: '请输入发行数量'
      }]
    },
	  {
      label: '剩余数量',
      prop: 'surplus',
      span: 12,
      addVisdiplay: false,
      editVisdiplay: false
    },
	  {
      label: '商铺名称',
      prop: 'shopName',
      addVisdiplay: false,
      editVisdiplay: false
    },
    {
      label: '商铺列表',
      prop: 'shopId',
      solt: true,
      formsolt: true,
      overHidden: true,
      hidden: true,
      hide: true,
      rules: [{
        required: true,
        message: '请选择商铺'
      }]
    },
    {
      label: '服务类目',
      prop: 'valueName',
      addVisdiplay: false,
      editVisdiplay: false
    },
    {
      label: '服务类目',
      prop: 'value',
      solt: true,
      formsolt: true,
      overHidden: true,
      hidden: true,
      hide: true,
      rules: [{
        required: true,
        message: '请选择类目'
      }]
    },
	  {
      label: '可用起始日期',
      prop: 'startTime',
      addVisdiplay: false,
      editVisdiplay: false,
    },
	  {
      label: '可用截止日期',
      prop: 'endTime',
      addVisdiplay: false,
      editVisdiplay: false
    },
    {
      label: '有效日期',
      prop: 'useDateRange',
      span: 20,
      solt: true,
      formsolt: true,
      overHidden: true,
      hidden: true,
      hide: true,
      rules: [{
        required: true,
        message: '请选择日期'
      }]
    },
    {
      label: '优惠方式',
      prop: 'type',
      addVisdiplay: false,
      editVisdiplay: false,
      solt: true,
      formsolt: true
    },
	  {
      label: '优惠券类型',
      prop: 'couponType',
      span: 12,
      solt: true,
      formsolt: true,
      overHidden: true,
      hidden: true,
      hide: true,
      // type: 'radio',
      // hide: true,
      // dicData: DIC.coupon_type,
      // valueDefault: DIC.coupon_type[0].value,
      // key: DIC.coupon_type[0],
    },
	 //  {
    //   label: '排序',
    //   prop: 'sort',
    //   span: 24,
    //   valueDefault: 100,
    //   rules: [{
    //     required: true,
    //     message: '请输入排序'
    //   }]
    // },
    // {
    //   label: '备注',
    //   span: 20,
    //   prop: 'remark',
    //   type: 'textarea'
    // }
  ]
}
